#ifndef _DBCONFXMLPARSER_HPP
#define _DBCONFXMLPARSER_HPP
#include "xmlparser.hpp"
#include <vector>
#include <string>
using std::vector;
using std::string;

typedef struct DbConfig
{
    string _connectStr;
    string _username;
    string _password;
    string _env;
} DbConfig,*PtrDbConfig;

namespace com_oocl_riley
{
class DbConfXmlParser:public XmlParser
{
public:
    DbConfXmlParser(const string &fileName);
    virtual ~DbConfXmlParser();
    virtual void *getContent();
    virtual void printAllContent();
private:
    virtual void tranverse(xmlDocPtr doc,xmlNodePtr cur);
    vector<PtrDbConfig> *_content;
};

}


#endif // _DBCONFXMLPARSER_HPP
